<header th:fragment="head" class="head-town-con box-shadows relative">
    <div class="head-left left textCenter fb">
        <span>善美银山幸福e家</span>
    </div>
    <div class="head-right right relative white">
        <p class="cursor">
            <span><img th:if="not ${#strings.isEmpty(userPhoto)}" style="width:50px;height:50px;"th:src="${userPhoto}" class=""><img th:if="${#strings.isEmpty(userPhoto)}" th:src="${#request.getContextPath()}+'/static/img/tx.png'" class="">[[${userName}]]</span>
            <span id="loginOut"><img th:src="${#request.getContextPath()}+'/static/img/icon_close.png'" class="">安全退出</span>
        </p>
    </div>
</header>